<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,height=device-height,viewport-fit=cover,initial-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">
	<meta name="format-detection" content="telephone=no,email=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="description" content="还卡超人">
	<meta name="keywords" content="还卡超人,拍拍贷">
	<title>PostMessage</title>
	<style>
		html,
		body {
			display: none;
		}
	</style>
</head>
<body>
	<script>
		window.addEventListener('message', function (e) {
			var source = e.source;
			var origin = e.origin || e.originalEvent.origin;
			if (source !== window.parent || origin !== 'https://m.huankachaoren.com') {
				return;
			}
			var resultArr = new RegExp('(?:^| )' + e.data + '=([^;]*)(?:; |$)', 'i').exec(document.cookie);
			var cookie = resultArr ? decodeURIComponent(resultArr[1]) : null;
			window.parent.postMessage(cookie, 'https://m.huankachaoren.com');
		}, false);
	</script>
</body>
</html>
